/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package inventurserver;

import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author streblow
 */
public class CSVFile {
    
    public FileWriter m_fwFile;
    
    public CSVFile() {
        m_fwFile = null;
    }
    
    public void open(String filename) throws IOException {
        try {
            m_fwFile = new FileWriter(filename, true);
        } catch (IOException ex) {
            throw new IOException(ex);
        }
    }
    
    public void close() throws IOException {
        try {
            m_fwFile.close();
        } catch (IOException ex) {
            throw new IOException(ex);
        } finally {
            m_fwFile = null;
        }
    }
}
